package com.zzyl.service;


import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.time.LocalDateTime;
import java.util.List;

public interface CustomerReservationService {

    /**
     *查询取消预约数量
     * @param
     * @return
     */
    Integer countCancelledReservation(Long updateBy);


    /**
     *2.2 查询每个时间段剩余预约次数
     * @param handleTime
     * @return
     */
    List<TimeCountVo> countReservationsForEachTime(LocalDateTime handleTime);

    /**
     * 新增
     * @param reservationDto
     */
    void add(ReservationDto reservationDto);


    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @param status
     * @return
     */
    PageResponse<ReservationVo> selectByPage(Integer pageNum, Integer pageSize, Integer status);


    /**
     * 取消预约
     * @param id
     */
    void cancelReservation(Long id);
}
